// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'Id',
        footer: "Foots",
        cnName: '产品物料',
        name: 'sly_product_materialsmodel',
        url: "/sly_product_materialsmodel/",
        sortName: "Id"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {"Product_Code":"","Product_Name":"","Product_Specification":"","Product_Organization":"","Product_GroupType":"","Product_Group":"","Product_Processroute":"","Product_Description":""};
    const editFormOptions = [[{"title":"编码","required":true,"field":"Product_Code","type":"text"},
                               {"title":"名称","required":true,"field":"Product_Name","type":"text"}],
                              [{"dataKey":"物料单位","data":[],"title":"单位","required":true,"field":"Product_Organization","type":"select"},
                               {"title":"规格型号","required":true,"field":"Product_Specification","type":"text"}],
                              [{"dataKey":"物料类型","data":[],"title":"群组类型","required":true,"field":"Product_GroupType","type":"select"},
                               {"dataKey":"物料群组","data":[],"title":"群组","required":true,"field":"Product_Group","type":"select"}],
                              [{"dataKey":"新工艺字典","data":[],"title":"工艺路线","field":"Product_Processroute","type":"select"},
                               {"title":"描述","required":true,"field":"Product_Description","type":"textarea"}]];
    const searchFormFields = {"Product_GroupType":"","Product_Processroute":"","Product_Name":""};
    const searchFormOptions = [[{"dataKey":"新工艺字典","data":[],"title":"工艺路线","field":"Product_Processroute","type":"like"},{"title":"名称","field":"Product_Name","type":"like"},{"dataKey":"物料类型","data":[],"title":"群组类型","field":"Product_GroupType","type":"="}]];
    const columns = [{field:'Id',title:'编号',type:'bigint',sort:true,width:110,readonly:true,require:true,align:'left'},
                       {field:'CreateUserId',title:'创建人ID',type:'bigint',width:110,hidden:true,require:true,align:'left'},
                       {field:'UpdateUserId',title:'更新人ID',type:'bigint',width:110,hidden:true,require:true,align:'left'},
                       {field:'CreatedUserName',title:'创建人',type:'string',width:110,align:'left'},
                       {field:'UpdatedUserName',title:'更新人',type:'string',width:110,align:'left'},
                       {field:'CreateTime',title:'创建时间',type:'datetime',width:150,align:'left'},
                       {field:'UpdateTime',title:'修改时间',type:'datetime',width:150,align:'left'},
                       {field:'IsDelete',title:'是否删除',type:'sbyte',width:110,require:true,align:'left'},
                       {field:'Product_Specification',title:'规格型号',type:'string',width:120,require:true,align:'left'},
                       {field:'Product_Organization',title:'单位',type:'string',bind:{ key:'物料单位',data:[]},width:120,require:true,align:'left'},
                       {field:'Product_GroupType',title:'群组类型',type:'string',bind:{ key:'物料类型',data:[]},width:120,require:true,align:'left'},
                       {field:'Product_Group',title:'群组',type:'bigint',bind:{ key:'物料群组',data:[]},width:110,require:true,align:'left'},
                       {field:'Product_Processroute',title:'工艺路线',type:'string',bind:{ key:'新工艺字典',data:[]},width:120,align:'left'},
                       {field:'Product_Code',title:'编码',type:'string',width:110,require:true,align:'left'},
                       {field:'Product_Name',title:'名称',type:'string',width:120,require:true,align:'left'},
                       {field:'Product_Description',title:'描述',type:'string',width:180,require:true,align:'left'}];
    const detail ={columns:[]};
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}